package com.sugar.subscribe.course.module.business.controller.app.order.vo;

import com.sugar.subscribe.course.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static com.sugar.subscribe.course.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static com.sugar.subscribe.course.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 订单分页 Request VO")
@Data
public class AppOrderPageReqVO extends PageParam {

    @Schema(description = "订单状态（0待接单；1已取消；2待上课；3待确认；4已完成）", example = "1")
    private Integer status;

    @Schema(description = "搜索内容", example = "1")
    private String content;

    @Schema(description = "服务二级分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long serviceId;

    @Schema(description = "上课地点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long venueId;

    @Schema(description = "上课日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-10-10")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate attendClassDate;
}